﻿using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using ZGEDrySaltery.Code;
using ZGEDrySaltery.Web;


namespace ZGEDrySaltery.Web.Areas.SystemManage.Controllers
{
    public class UserController : ControllerBase
    {

        [HttpGet]
        [HandlerAjaxOnly]
        public ActionResult GetGridJson(Pagination pagination, string keyword)
        {
            var data = new
            {
                //rows = userApp.GetList(pagination, keyword),
                total = pagination.total,
                page = pagination.page,
                records = pagination.records
            };
            return Content(data.ToJson());
        }
        
    }
}
